<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: C:/Users/ASUS/Desktop/dm-ctrlH7-balance-9025test/modules/algorithm/user_lib.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('user__lib_8c.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">user_lib.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;stdlib.h&quot;</code><br />
<code>#include &quot;memory.h&quot;</code><br />
<code>#include &quot;<a class="el" href="user__lib_8h_source.html">user_lib.h</a>&quot;</code><br />
<code>#include &quot;math.h&quot;</code><br />
<code>#include &quot;<a class="el" href="main_8h_source.html">main.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-define-members" class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a3c5aa68336a2fe036789588c7b3ab418" id="r_a3c5aa68336a2fe036789588c7b3ab418"><td class="memItemLeft" align="right" valign="top"><a id="a3c5aa68336a2fe036789588c7b3ab418" name="a3c5aa68336a2fe036789588c7b3ab418"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>user_malloc</b>&#160;&#160;&#160;malloc</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a31afb956339abf0230d4314c847dd971" id="r_a31afb956339abf0230d4314c847dd971"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a31afb956339abf0230d4314c847dd971">zmalloc</a> (size_t size)</td></tr>
<tr class="memdesc:a31afb956339abf0230d4314c847dd971"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回一块干净的内�?,不过仍然需要强制转�?为你需要的类型  <br /></td></tr>
<tr class="memitem:a514ba70430558b3be1f14d8efcb63c12" id="r_a514ba70430558b3be1f14d8efcb63c12"><td class="memItemLeft" align="right" valign="top"><a id="a514ba70430558b3be1f14d8efcb63c12" name="a514ba70430558b3be1f14d8efcb63c12"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>Sqrt</b> (float x)</td></tr>
<tr class="memitem:a87431b689d43aac354cb571f46cbda1c" id="r_a87431b689d43aac354cb571f46cbda1c"><td class="memItemLeft" align="right" valign="top"><a id="a87431b689d43aac354cb571f46cbda1c" name="a87431b689d43aac354cb571f46cbda1c"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>abs_limit</b> (float num, float Limit)</td></tr>
<tr class="memitem:a8e014290d3f9707d1c2d06717e815a8b" id="r_a8e014290d3f9707d1c2d06717e815a8b"><td class="memItemLeft" align="right" valign="top"><a id="a8e014290d3f9707d1c2d06717e815a8b" name="a8e014290d3f9707d1c2d06717e815a8b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>sign</b> (float value)</td></tr>
<tr class="memitem:addb1d67e21b35b36007371974306da4a" id="r_addb1d67e21b35b36007371974306da4a"><td class="memItemLeft" align="right" valign="top"><a id="addb1d67e21b35b36007371974306da4a" name="addb1d67e21b35b36007371974306da4a"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>float_deadband</b> (float Value, float minValue, float maxValue)</td></tr>
<tr class="memitem:a5ec0782bfe3b3aee7181959715f712e3" id="r_a5ec0782bfe3b3aee7181959715f712e3"><td class="memItemLeft" align="right" valign="top"><a id="a5ec0782bfe3b3aee7181959715f712e3" name="a5ec0782bfe3b3aee7181959715f712e3"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>float_constrain</b> (float Value, float minValue, float maxValue)</td></tr>
<tr class="memitem:a02c2e5959398dfb10b030adb6a467745" id="r_a02c2e5959398dfb10b030adb6a467745"><td class="memItemLeft" align="right" valign="top"><a id="a02c2e5959398dfb10b030adb6a467745" name="a02c2e5959398dfb10b030adb6a467745"></a>
int16_t&#160;</td><td class="memItemRight" valign="bottom"><b>int16_constrain</b> (int16_t Value, int16_t minValue, int16_t maxValue)</td></tr>
<tr class="memitem:aafaf777de97f12e5e1b2fca1c5d066aa" id="r_aafaf777de97f12e5e1b2fca1c5d066aa"><td class="memItemLeft" align="right" valign="top"><a id="aafaf777de97f12e5e1b2fca1c5d066aa" name="aafaf777de97f12e5e1b2fca1c5d066aa"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>loop_float_constrain</b> (float Input, float minValue, float maxValue)</td></tr>
<tr class="memitem:a9449f18ffb9917d6aa4bd62b31469e9b" id="r_a9449f18ffb9917d6aa4bd62b31469e9b"><td class="memItemLeft" align="right" valign="top"><a id="a9449f18ffb9917d6aa4bd62b31469e9b" name="a9449f18ffb9917d6aa4bd62b31469e9b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>theta_format</b> (float Ang)</td></tr>
<tr class="memitem:a6a2af78041b11fa202434c8ead5c9560" id="r_a6a2af78041b11fa202434c8ead5c9560"><td class="memItemLeft" align="right" valign="top"><a id="a6a2af78041b11fa202434c8ead5c9560" name="a6a2af78041b11fa202434c8ead5c9560"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>float_rounding</b> (float raw)</td></tr>
<tr class="memitem:a5d815a0a50d880cf901ad6818b1cc5c8" id="r_a5d815a0a50d880cf901ad6818b1cc5c8"><td class="memItemLeft" align="right" valign="top"><a id="a5d815a0a50d880cf901ad6818b1cc5c8" name="a5d815a0a50d880cf901ad6818b1cc5c8"></a>
float *&#160;</td><td class="memItemRight" valign="bottom"><b>Norm3d</b> (float *v)</td></tr>
<tr class="memitem:ae48889bbfdac4869379b604ee7c5a141" id="r_ae48889bbfdac4869379b604ee7c5a141"><td class="memItemLeft" align="right" valign="top"><a id="ae48889bbfdac4869379b604ee7c5a141" name="ae48889bbfdac4869379b604ee7c5a141"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>NormOf3d</b> (float *v)</td></tr>
<tr class="memitem:a2af89a25e04a8378567cd866ba1e801b" id="r_a2af89a25e04a8378567cd866ba1e801b"><td class="memItemLeft" align="right" valign="top"><a id="a2af89a25e04a8378567cd866ba1e801b" name="a2af89a25e04a8378567cd866ba1e801b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Cross3d</b> (float *v1, float *v2, float *res)</td></tr>
<tr class="memitem:a623c2aeb3e6f6a271a1a91f5770c0634" id="r_a623c2aeb3e6f6a271a1a91f5770c0634"><td class="memItemLeft" align="right" valign="top"><a id="a623c2aeb3e6f6a271a1a91f5770c0634" name="a623c2aeb3e6f6a271a1a91f5770c0634"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>Dot3d</b> (float *v1, float *v2)</td></tr>
<tr class="memitem:a329f38f9e67ae31ff3fb32ccb50f3b19" id="r_a329f38f9e67ae31ff3fb32ccb50f3b19"><td class="memItemLeft" align="right" valign="top"><a id="a329f38f9e67ae31ff3fb32ccb50f3b19" name="a329f38f9e67ae31ff3fb32ccb50f3b19"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>AverageFilter</b> (float new_data, float *buf, uint8_t len)</td></tr>
<tr class="memitem:a98b0a4aacab442f655779833d2a14f39" id="r_a98b0a4aacab442f655779833d2a14f39"><td class="memItemLeft" align="right" valign="top"><a id="a98b0a4aacab442f655779833d2a14f39" name="a98b0a4aacab442f655779833d2a14f39"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>MatInit</b> (<a class="el" href="structarm__matrix__instance__f32.html">mat</a> *m, uint8_t row, uint8_t col)</td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Wang Hongxi </dd>
<dd>
modified by neozng </dd></dl>
<dl class="section version"><dt>Version</dt><dd>0.2 beta </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2021/2/18 </dd></dl>
<dl class="section attention"><dt>Attention</dt><dd></dd></dl>
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
<a id="a31afb956339abf0230d4314c847dd971" name="a31afb956339abf0230d4314c847dd971"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31afb956339abf0230d4314c847dd971">&#9670;&#160;</a></span>zmalloc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * zmalloc </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回一块干净的内�?,不过仍然需要强制转�?为你需要的类型 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>分配大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void* </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a href="dir_e05d7e2b1ecd646af5bb94391405f3b5.html">modules</a></li><li class="navelem"><a href="dir_7f2cce0340e3bee62fc9457f37cf3f77.html">algorithm</a></li><li class="navelem"><a href="user__lib_8c.html">user_lib.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
